<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">货物分类管理</h1>
</div>
<div class="wrapper-sm" >
	<uib-tabset active="3"  class="tab-container" ng-init="steps={percent:20, step1:false, step2:false, step3:true, step4:false, step5:false, step6:false, step7:false, step8:false}">
		<uib-tab heading="基本信息"  select="steps.percent=20" ui-sref="app.client.client_edit">
			<uib-progressbar value="20" class="progress-xs" type="success"></uib-progressbar>
		</uib-tab>
		<uib-tab heading="客户代表"  select="steps.percent=35" ui-sref="app.client.customerrepresentative_manage"></uib-tab>
		<uib-tab heading="货物分类" index="3" select="steps.percent=45" ui-sref="app.client.goodstype_manage" >
			<form name="step3" id="goodsTypeForm" class="form-validation form-horizontal" novalidate ng-controller="goodsTypeManagentController">
				<uib-progressbar value="steps.percent" class="progress-xs" type="success"></uib-progressbar>
				<div class="wrapper-sm ">
					<div class="panel panel-default">
						<div class="panel-heading font-bold">查询</div>
						<div class="panel-body">
							<label class="control-label pull-left m-l m-r">客户单位</label>
							<div class="col-md-6 form-group m-l m-r">
								<label class="control-label pull-left m-l m-r">{{clientName}}</label>
							</div>
							<div class="line line-xs pull-in"></div>
							<label class="control-label pull-left m-l m-r">货物分类</label>
							<div class="col-md-2 form-group">
								<input type="text" class="form-control input-sm" id="goodsType_name" ng-model="queryTerms.name" name="name" placeholder="请输入货物分类名称">
							</div>
							<button id="goodsType_query" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon m-l" ng-class="{'disabled':querying}" ng-disabled="querying">
                                <i class="fa fa-search" ng-show="!querying"></i>
                                <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                                <span ng-show="!querying">查询</span>
                                <span ng-show="querying">查询中...</span>
                            </button>
						</div>
					</div>
					<div class="panel panel-default">
						<div class="panel-heading">
							货物分类列表
						</div>
						<div class="table-responsive">
							<div ui-grid="gridOptions" ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns style="height:{{heightA}}px; min-height:395px; overflow-y:hidden; min-width:1000px;">
								<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
							</div>
						</div>
					</div>

					<button id="goodsType_add" data-toggle="modal" data-target="#goodstype" class="pull-right-xs btn m-b-xs btn-sm btn-info btn-addon " ng-click="addGoodsType()"><i class="fa fa-plus"></i>添加</button>
					<!-- Modal -->
					<div class="modal fade" id="goodstype" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									<button id="goodsType_miss" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
									<h4 class="modal-title" id="myModalLabel">{{title}}</h4>
								</div>
								<div class="modal-body">
									<div class="form-group">
										<label class="col-lg-3 control-label">货物分类<span class="text-danger">*</span></label>
										<div class="col-lg-6">
											<input id="goodsType_nameBox" type="text" class="form-control" ng-model="detail.name" placeholder="请填写货物分类" name="nameBox" required>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label">备注</label>
										<div class="col-lg-6">
											<textarea class="form-control" ng-model="detail.remarks" placeholder="请再次填写备注" name="remarks"></textarea>
										</div>
									</div>
								</div>
								<div class="modal-footer">
									<button id="goodsType_dismiss" type="button" class="btn btn-default" data-dismiss="modal">取消</button>
									<button id="goodsType_save" type="button" class="btn btn-primary" ng-click="detail.click()">保存</button>
								</div>
							</div>
						</div>
					</div>
				</div>
			</form>
		</uib-tab>
		<uib-tab heading="货物" active="steps.step4" select="steps.percent=55" ui-sref="app.client.goods_manage"></uib-tab>
		<uib-tab heading="结算方" active="steps.step5" select="steps.percent=65" ui-sref="app.client.settleManagent"></uib-tab>
		<uib-tab heading="线路报价" active="steps.step6" select="steps.percent=75" ui-sref="app.client.lineprice_manage"></uib-tab>
		<uib-tab heading="工程" active="steps.step7" select="steps.percent=85" ui-sref="app.client.projectManagent"></uib-tab>
		<uib-tab heading="客户资料" active="steps.step8" select="steps.percent=100" ui-sref="app.client.clientinfo_manage"></uib-tab>
		<uib-tab heading="对账回款周期" active="steps.step9" select="steps.percent=100" ui-sref="app.client.returnPeriod"></uib-tab>
	</uib-tabset>
</div>